Skip to content

Settings: Disable "Add New" Button#1028

Merged
n7studios merged 5 commits intomainfrom
hide-add-new-button-setting
Feb 25, 2026
Merged

Settings: Disable "Add New" Button#1028
n7studios merged 5 commits intomainfrom
hide-add-new-button-setting

Conversation

@n7studios
Copy link
Contributor

@n7studios n7studios commented Feb 24, 2026

Summary

Adds an option to disable the "Add New" Landing Page/Member Content dropdown button on Pages, as requested here.

Screenshot 2026-02-24 at 08 59 15

Testing

  • PluginSettingsGeneralCest:testAccessibilityAndUTMParameters: Test the Disable Add New Landing Page / Member Content Button option has the correct label for accessibility
  • PluginSettingsGeneralCest:testEnableAndDisableAddNewLandingPageMemberContentButtonSetting: Test the Disable Add New Landing Page / Member Content Button option saves correctly when changed
  • PageLandingPageSetupWizard:testAddNewLandingPageButtonNotDisplayedWhenDisabled: Test the Add New button is not displayed when disabled in the Plugin's settings.
  • RestrictContentSetupCest:testAddNewMemberContentButtonNotDisplayedWhenDisabled: Test the Add New button is not displayed when disabled in the Plugin's settings.

Checklist

@n7studios n7studios self-assigned this Feb 24, 2026
@github-actions
Copy link

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team February 24, 2026 02:10
@n7studios n7studios marked this pull request as ready for review February 24, 2026 02:10
Copy link

@ciccio-kit ciccio-kit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@n7studios n7studios merged commit ab6b31a into main Feb 25, 2026
161 of 166 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants